<admintpl file="header_adminlte" />
</head>

<body>

	<div class="row js-check-wrap">
		<div class="col-xs-12">
			<ul class="nav nav-tabs" style="margin-bottom:10px;">
					<php>
						$all_is_active = $status == 'all' ? ' class="active"' : ''; 			 	//全部用户
						$top_is_active = $status == 'top' ? ' class="active"' : ''; 				//风云榜
						$verify_yes_active = $status == 'verify_yes' ? ' class="active"' : ''; 		//已认证
						$verify_no_is_active = $status == 'verify_no' ? ' class="active"' : ''; 		//未认证
						$disabled_is_avtive = $status == 'disabled' ? ' class="active"' : ''; 		//已停用
					</php>
					<li{$all_is_active}>
						<a href="{:U('Weibo/AdminUser/index','status=all')}">所有用户的关系</a>
					</li>
					<li{$top_is_active}>
						<a href="{:U('Weibo/AdminUser/index',array('status'=>'top','status_second'=>'weibo_desc'))}">风云人物的用户关系</a>
					</li>
					<li{$verify_yes_active}>
						<a href="{:U('Weibo/AdminUser/index',array('status'=>'verify_yes','status_second'=>'verfiy_personal'))}">已认证用户的关系</a>
					</li>
					<li{$verify_no_is_active}>
						<a href="{:U('Weibo/AdminUser/index','status=verify_no')}">未认证用户的关系</a>
					</li>
					<li{$disabled_is_avtive}>
						<a href="{:U('Weibo/AdminUser/index','status=disabled')}">已停用用户的关系</a>
					</li>
				</ul>

				<!--风云人物--> 
				<php>
					$top_is_show = $status == 'top' ? ' class="nav nav-tabs show"' : ''; 			//风云榜-显示下边菜单
					$weibo_desc_is_active = $status_second == 'weibo_desc' ? ' class="active"' : ''; 		//风云榜-发布最多
					$follow_desc_is_active = $status_second == 'follow_desc' ? ' class="active"' : ''; 	//风云榜-关注最多
					$fans_desc_is_active = $status_second == 'fans_desc' ? ' class="active"' : ''; 		//风云榜-粉丝最多
				</php>
				<ul {$top_is_show} style="margin-bottom:10px;display: none;">
					<li{$weibo_desc_is_active}>
						<a href="{:U('Weibo/AdminUser/index',array('status'=>'top','status_second'=>'weibo_desc'))}">发布最多</a>
					</li>
					<li{$follow_desc_is_active}>
						<a href="{:U('Weibo/AdminUser/index',array('status'=>'top','status_second'=>'follow_desc'))}">关注最多</a>
					</li>
					<li{$fans_desc_is_active}>
						<a href="{:U('Weibo/AdminUser/index',array('status'=>'top','status_second'=>'fans_desc'))}">粉丝最多</a>
					</li>
				</ul>


				<!--已认证 -->
				<php>
					$verify_yes_is_show = $status == 'verify_yes' ? ' class="nav nav-tabs show"' : ''; 		//已认证-显示下边菜单
					$verfiy_personal_is_active = $status_second == 'verfiy_personal' ? ' class="active"' : ''; 		//已认证-个人
					$verfiy_dept_is_active = $status_second == 'verfiy_dept' ? ' class="active"' : ''; 			//已认证-机构
					$verfiy_host_is_active = $status_second == 'verfiy_host' ? ' class="active"' : ''; 			//已认证-主持人
				</php>
				<ul {$verify_yes_is_show} style="margin-bottom:10px;display: none;">
					<li{$verfiy_personal_is_active}>
						<a href="{:U('Weibo/AdminUser/index',array('status'=>'verify_yes','status_second'=>'verfiy_personal'))}">个人</a>
					</li>
					<li{$verfiy_dept_is_active}>
						<a href="{:U('Weibo/AdminUser/index',array('status'=>'verify_yes','status_second'=>'verfiy_dept'))}">机构</a>
					</li>
					<li{$verfiy_host_is_active}>
						<a href="{:U('Weibo/AdminUser/index',array('status'=>'verify_yes','status_second'=>'verfiy_host'))}">主持人</a>
					</li>
				</ul>



				<div class="box-body table-responsive no-padding">
					
					<form class="well form-search" method="post" action="{:U('AdminUser/index')}">
						用户名:
						<input type="text" name="nickname" style="width: 300px;" value="{:I('request.nickname/s','')}" placeholder="请输入用户名">
						<input type="submit" class="btn btn-primary" value="搜索" />
						<a class="btn btn-danger" href="{:U('AdminUser/index')}">清空</a>
					</form>

					<form class="js-ajax-form" method="post">

						
						
						<table class="table table-hover table-bordered table-list">
							<thead>
								<tr>
									<th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
									<th>自增ID</th>
									<th>用户ID</th>
									<th>用户名</th>
									<th>用户简介</th>
									<th>发表微博数</th>
									<th>关注数</th>
									<th>粉丝数</th>
									<th>认证情况</th>
									<th>最后活跃时间</th>
									<th>状态</th>
									<th>操作</th>
								</tr>
							</thead>
							<volist name="list" id="list">
								<tr>
									<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$list.weibo_uid}" title="ID:{$list.weibo_uid}"></td>
									<td>{$list['weibo_uid']}</td> 
									<td>{$list['user_id']}</td>
									<td>{$list['nickname']}</td>
									<td>{$list['introduction']}</td>
									<td>{$list['weibo_count']}</td>
									<td>{$list['follow_count']}</td>
									<td>{$list['fans_count']}</td>
									<td>
										<if condition="($list.verify eq 0) ">
											<span class="label label-default">普通用户</span>
										<elseif condition="$list.verify eq 1" />
											<span class="label label-success">个人</span>
										<elseif condition="$list.verify eq 2" />
											<span class="label label-info">机构</span>
										<elseif condition="$list.verify eq 3" />
											<span class="label label-warning">主持人</span>
										</if>
										
										
										<if condition="($list.verify eq 2) OR ($list.verify eq 3)" >
											<i class="fa  fa-vimeo  text-red"></i>
										</if>
									</td>
									<td>{$list['activity_time']|date="Y-m-d",###}</td>
									<td>
										<if condition="($list.status eq 1) ">
											<span class="label label-success">正常</span>
										<elseif condition="$list.status  eq 0" />
											<span class="label label-default">停用</span>
										</if>
									</td>
									<td>
										<a class="label label-info" href="{:U('AdminUser/details',array('user_id'=>$list['user_id']))}">用户详情</a>
										<if condition="$list['status'] eq 1">
											<a href="{:U('AdminUser/disable',array('user_id'=>$list['user_id']))}" class="label label-danger js-ajax-dialog-btn" data-msg="您确定要停用该微博用户吗？">停用</a>
										<else />
											<a href="{:U('AdminUser/enable',array('user_id'=>$list['user_id']))}" class="label label-danger js-ajax-dialog-btn" data-msg="您确定要启用该微博用户吗？">启用</a>
										</if>
									</td>
								</tr>
							</volist> 
							<tfoot>
								<tr>
									<th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
									<th>自增ID</th>
									<th>用户ID</th>
									<th>用户名</th>
									<th>用户简介</th>
									<th>发表微博数</th>
									<th>关注数</th>
									<th>粉丝数</th>
									<th>认证情况</th>
									<th>最后活跃时间</th>
									<th>状态</th>
									<th>操作</th>
								</tr>
							</tfoot>
						</table>

						<nav>
							<ul class="pagination">
								{$page}
							</ul>
						</nav>
					</form>
				</div>
				<!-- /.box-body -->
			</div>
			<!-- /.box -->
		</div>

		<script src="__PUBLIC__/js/common.js"></script>
		<script src="__PUBLIC__/js/newthink.js"></script>
	</body>

</html>